
[DEPRECATED: use
GET /manage/v3
and
POST /manage/v3
instead.]
pkgname).
The name of the server in the payload body is ignored and name
is used as the name.
| Response Headers | |
|---|---|
| Content-type |
The MIME type of the data in the payload body. Depending upon the
value of the format parameter or Accept header, either
application/xml or application/json.
|
Upon success, MarkLogic Server returns status code 200 (OK). The response body contains the requested data.
manage-admin role, or the
following privilege:
http://marklogic.com/xdmp/privileges/manage
curl -o Oscars.xml --digest -u admin:admin \
http://localhost:8002/manage/v2/servers/Oscars?view=package
==> Download the configuration of the 'Oscars' server to the Oscars.xml file.
curl -X POST --digest -u admin:admin -H "Content-type: application/xml" -d @Oscars.xml \
"http://localhost:8002/manage/v2/packages/test-package/servers/NewServer"
==> Add the 'Oscars' server configuration, as 'NewServer.xml,' to the
"test-package" package.